home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re ODF R1 RefCounting Exte < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF R1 RefCounting Exte
  2. Sent:        5/30/96 5:53 PM
  3. Received:    5/30/96 6:03 PM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'll try to save Greg the trouble.  After re-reading the description of
  9. >ODRefCntObject, I think you're right.  The extension creation function should
  10. >be setting the refCount to 1, not FW_CExtensionManager::AcquireExtension().
  11. >A note to that effect might be useful in the Engineering Note on Extensions.
  12.  
  13. Extensions, and creating them, are already documented in the OD
  14. Programmer's Guide (page 467). There is also an ODExtensions recipe. These
  15. docs aren't as complete as they could be about extensions, but ODF has
  16. enough to cover without doing more OpenDoc documentation.
  17.  
  18. Oh, if you look in the OpenDoc source code, ODRefCntObjectInitRefCntObject
  19. (RefCtObj.cpp) sets _fRefCount = 1. You can't create an extension with a 0
  20. refcount unless you are screwing something up. Forgetting to call
  21. InitExtension?
  22.  
  23.  
  24. Mark Lanett, ODF
  25.  
  26.